for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import React from 'react';
import {IObserver} from '../../../Observer/Observer';
import Model from './Model';
export default class Presenter {
moduleState: IObserver<typeof React.Component | null>;
constructor(moduleState: IObserver<typeof React.Component | null>) {
this.moduleState = moduleState;
}
present() {
const model: Model = new Model();
model.module = this.moduleState.value;
return model;